import request from "@/utils/request";

// 查询办事指南列表
export function listWorkGuide(query) {
  return request({
    url: "/affairs-guide/listPage",
    method: "get",
    params: query,
  });
}

// 查询办事指南详细（根据Id查询单个）
export function getWorkGuideById(query) {
  return request({
    url: "/affairs-guide/selectOne",
    method: "get",
    params: query,
  });
}

// 新增办事指南
export function addWorkGuide(data) {
  return request({
    url: "/affairs-guide/add",
    method: "post",
    data: data,
  });
}

// 修改办事指南
export function updateWorkGuide(data) {
  return request({
    url: "/affairs-guide/update",
    method: "put",
    data: data,
  });
}

// 删除办事指南
export function delWorkGuide(Id) {
  return request({
    url: "/affairs-guide/delete/" + Id,
    method: "delete",
  });
}
